package www.admin.dao;

import www.admin.model.GroupResource;
import www.admin.mybatis.Criteria;
import java.util.List;


public interface IGroupResourceDao{

    /**
     * 查询列表
     * @param param
     * @return
     */
	public List<GroupResource>  queryPage (Criteria<GroupResource> param);

    /**
     * 统计
     * @param param
     * @return
     */
	public Integer queryPageCount (Criteria<GroupResource> param);

    /**
     * 根据name查询
     * @param name
     * @return
     */
	public GroupResource  queryEntity (String name);

	 /**
     * 根据id删除
     * @param id
     * @return
     */
	public int deleteById (Integer id );

	 /**
     * 添加
     * @param id
     * @return
     */
	public int insert(GroupResource record );
	
	 /**
     * 根据id修改
     * @param id
     * @return
     */
	public int update (Criteria<GroupResource> param);


}